package Chess;

import java.awt.image.BufferedImage;
import java.io.IOException;
import javax.imageio.ImageIO;

public class ImageUtil {
	
	static BufferedImage getimg(String panth) {
		try {
			BufferedImage img=ImageIO.read(ImageUtil.class.getResource(panth));
			return img;
		} catch (IOException e) {
			e.printStackTrace();
		}
		return null;
	}
}
